# 从configurations.xml配置信息管理
from xml.etree import ElementTree

# 加载XML配置文件
tree = ElementTree.parse("configurations.xml")
root = tree.getroot()

dbSource = root.find("source-database")
objectiveServer = root.find("objective-server")

dbHost = dbSource.find("host").text
dbPort = dbSource.find("port").text
dbName = dbSource.find("database").text
dbUser = dbSource.find("user").text
dbPassword = dbSource.find("password").text

objectiveIP = objectiveServer.find("ip").text
mqttPort = objectiveServer.find("mqttPort").text
httpsPort = objectiveServer.find("httpsPort").text
pushPath = objectiveServer.find("pushPath").text
appID = objectiveServer.find("appID").text
objectiveKey = objectiveServer.find("key").text
objectiveIV = objectiveServer.find("iv").text


